namespace Digitalmes.Common.Workflows;

/// <summary>
/// 工作流步骤基类。
/// </summary>
public abstract class WorkflowStep
{
    internal virtual ValueTask ActivateAsync(WorkflowStepState state)
    {
        return default;
    }
}

/// <summary>
/// 工作流步骤。
/// </summary>
/// <typeparam name="TState"></typeparam>
public class WorkflowStep<TState> : WorkflowStep where TState : class, new()
{
    internal virtual ValueTask ActivateAsync(WorkflowStepState<TState> state)
    {
        return default;
    }
}
